package com.qst.crop.dao;

import com.qst.crop.entity.Question;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface QuestionDao {

    //条件查询问答
    List<Question> selectAllByKeys(@Param("keys")String keys);

    //根据ID查询问答
    Question selectByPrimaryKey(Integer id);

    //增加问答
    int insertSelective(Question record);

    //查询个人问答
    List<Question> selectByQuestion(Question record);

    //根据id修改问答
    int updateByPrimaryKeySelective(Question record);

    //删除问答
    int deleteByPrimaryKey(Integer id);

}
